package cn.edu.scau.cmi.lintianwei.simpleFactoryMethod;

public class MeatFactory {
	public static Meat getMeat(String option) {
		Meat meat = null;
		if (option.compareTo("Pork") == 0) {
			meat = new Pork();
		} else if (option.compareTo("Beef") == 0) {
			meat = new Beef();
		} else if (option.compareTo("Chicken") == 0) {
			meat = new Chicken();
		}
		return meat;
	}
}
